# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1293189525.300182
_template_filename='/home/sunzheng/Projects/FidoWeb/FidoWeb_0.98/fidoweb/templates/global/global.mako'
_template_uri='global/global.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = []


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        list = context.get('list', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1

        import json
        
        jsFiles = list()
        jsFiles.append('/script/global_plugins.merged.min.js?v=14')
        jsFiles.append('/script/global/global.merged.min.js?v=16')
        jsFiles.extend(c.jsFiles)
        c.jsFiles = jsFiles
        
        cssFiles = list()
        cssFiles.append('/css/global_plugins.merged.min.css?v=15')
        cssFiles.append('/css/global/global.merged.min.css?v=15')
        cssFiles.extend(c.cssFiles)
        c.cssFiles = cssFiles
        
        
        __M_locals_builtin_stored = __M_locals_builtin()
        __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['cssFiles','json','jsFiles'] if __M_key in __M_locals_builtin_stored]))
        # SOURCE LINE 15
        __M_writer(u'\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n<html>\n\t<head>\n')
        # SOURCE LINE 19
        for file in c.jsFiles :
            # SOURCE LINE 20
            __M_writer(u'\t\t<script type="text/javascript" src=')
            __M_writer(filters.decode.utf8(file))
            __M_writer(u'></script>\n')
            pass
        # SOURCE LINE 22
        for file in c.cssFiles :
            # SOURCE LINE 23
            __M_writer(u'\t\t<link href="')
            __M_writer(filters.decode.utf8(file))
            __M_writer(u'" media="screen" rel="stylesheet" type="text/css"/>\n')
            pass
        # SOURCE LINE 25
        __M_writer(u'\t\t<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n\t\t<meta name="google-site-verification" content="beG6bNNLUUODWMRbnfUQkioTgS12nnQBQ67G2DUda1U" />\n\t\t<title>')
        # SOURCE LINE 27
        __M_writer(filters.decode.utf8(c.title))
        __M_writer(u'</title>\n\t\t<script type="text/javascript">\n\t\t\tvar _gaq=_gaq||[];_gaq.push([\'_setAccount\',\'UA-20323058-1\']);_gaq.push([\'_trackPageview\']);\n\t\t\t(function(){var ga = document.createElement(\'script\');ga.type=\'text/javascript\';ga.async = true;ga.src=(\'https:\'==document.location.protocol?\'https://ssl\':\'http://www\')+\'.google-analytics.com/ga.js\';\n\t\t\tvar s = document.getElementsByTagName(\'script\')[0];s.parentNode.insertBefore(ga, s);})();\n\t\t</script>\n\t</head>\n\t<body>\n\t\t<div class="page_variable">\n\t\t\t')
        # SOURCE LINE 36

        l = list()
        for s in c.schools : l.append({"id" : s.id, "name" : s.name})
                                
        
        __M_locals_builtin_stored = __M_locals_builtin()
        __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['s','l'] if __M_key in __M_locals_builtin_stored]))
        # SOURCE LINE 39
        __M_writer(u'\n\t\t\t<div var_name="schools">')
        # SOURCE LINE 40
        __M_writer(filters.decode.utf8(json.dumps(l)))
        __M_writer(u'</div>\n\t\t</div>\n\t\t')
        # SOURCE LINE 42
        __M_writer(filters.decode.utf8(c.header))
        __M_writer(u'\n\t\t<div id="globalcontent">')
        # SOURCE LINE 43
        __M_writer(filters.decode.utf8(c.content))
        __M_writer(u'</div>\n\t\t<div style="clear:both;"></div>\n\t\t<div class="global_footer">\n\t\t\t<div class="footer_fido" style="float:left;">ImFido</div>\n\t\t\t<div class="footer_links" style="float:right;">\u5173\u4e8e\u6211\u4eec \xb7 \u9690\u79c1\u58f0\u660e</div>\n\t\t</div>\n\t</body>\n</html>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


